/*!
 * Copyright (C) 2020 - All Rights Reserved by
 * @author : ZhaoYanbo
 * @email  : zyb920@hotmail.com
 * @created: 2020-10-31
 * @version: 1.0.0.0
 *
 */


#include "widget.h"
#include "ui_widget.h"
#include "graphicsview.h"
#include <QHBoxLayout>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    this->resize(660, 620);

    GraphicsView *view = new GraphicsView(this);
    view->init(10, 6);

    QHBoxLayout *hlay = new QHBoxLayout(this);
    hlay->setMargin(8);
    hlay->addWidget(view, 1);
}

Widget::~Widget()
{
    delete ui;
}

